<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>div ul li 经典布局</title>
    <style type="text/css">
        *{
            margin:0;
            padding:0px;
        }
        #div-box1{
            width:500px;
            height:800px;
            margin:0 auto;
            border:1px solid silver;
            margin:40px 0 0 140px;
        }
        .qiuul{
            list-style-type: none;
            background-color: magenta;
            /*自适应  所以不需要高度*/
            /*height:300px;*/
        }
        .qiuul img{
            width:50px;
            margin:5px 0 0 5px;
        }
        .qiuul li{
            /*为了让li放到一排，使用了左浮动*/
            float:left;
            border:1px solid red;
            width:60px;
            height:80px;
            margin-left:25px;
            margin-top:20px;
        }
        .qiuul span{
            font-size: small;
            margin-left:18px;
            margin-top:-2px;
            display:block;
        }
        .qiuul a:link{
            color:black;
            text-decoration: none;
        }
        .qiuul a:hover{
            color:red;
        }
    </style>
</head>
<body>
<div id="div-box1">
    <ul class="qiuul">
        <li>
            <img src="../qiu.jpg" alt="qiuqiu">
            <span><a href="#">明星</a></span>
        </li>
        <li>
            <img src="../qiu.jpg" alt="qiuqiu">
            <span><a href="#">明星</a></span>
        </li>
        <li>
            <img src="../qiu.jpg" alt="qiuqiu">
            <span><a href="#">明星</a></span>
        </li>
        <li>
            <img src="../qiu.jpg" alt="qiuqiu">
            <span><a href="#">明星</a></span>
        </li>
        <li>
            <img src="../qiu.jpg" alt="qiuqiu">
            <span><a href="#">明星</a></span>
        </li>
        <li>
            <img src="../qiu.jpg" alt="qiuqiu">
            <span><a href="#">明星</a></span>
        </li>
        <li>
            <img src="../qiu.jpg" alt="qiuqiu">
            <span><a href="#">明星</a></span>
        </li>

    </ul>
</div>
</body>
</html>